﻿#include "TaoQuickManager.h"
#include "TaoQuickMacro.h"

#include <QQmlContext>

TaoQuickManager::TaoQuickManager() {
}

TaoQuickManager *TaoQuickManager::getInstance() {
    static TaoQuickManager instance;
    return &instance;
}

void TaoQuickManager::init(QQmlEngine *engine) {
#ifdef TaoQuickImport
    engine->addImportPath(TaoQuickImport);
#endif
#ifdef TaoQuickImage
    engine->rootContext()->setContextProperty("taoQuickImagePath", TaoQuickImage);
#endif
}
